package org.metasketch.graphics.language.xml;

import java.util.ArrayList;
import java.util.List;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamAsAttribute;
import com.thoughtworks.xstream.annotations.XStreamImplicit;

@XStreamAlias("style")
public class CustomStyle extends NamedEntity {

	// only one is valid; cannot have both defined
	// @XStreamAsAttribute
	// String source;

	@XStreamAsAttribute
	String value;

	@XStreamImplicit
	List<StyleVar> variables = new ArrayList<StyleVar>();

	// public String getSource() {
	// return source;
	// }
	//
	// public void setSource(String source) {
	// this.source = source;
	// }

	public String getValue() {
		return value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public List<StyleVar> getVariables() {
		return variables;
	}

	public void setVariables(List<StyleVar> constants) {
		this.variables = constants;
	}
}
